package com.itheima.jianbing2;

public class Desk {
    //数量
    private int count = 10;

    //有没有
    private boolean flag = false;

    //锁
    private final Object obj = new Object();

    //提供 public get set方法


    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public Object getObj() {
        return obj;
    }
}
